package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.SocDispatchCompanyEmpExample.E_ADD_OR_LESS;
import static org.jsola.hr.example.SocDispatchCompanyEmpExample.E_CHILD_COMPANY_ID;
import static org.jsola.hr.example.SocDispatchCompanyEmpExample.E_COMPANY_ID;
import static org.jsola.hr.example.SocDispatchCompanyEmpExample.E_SOC_DISPATCH_COMPANY_ID;
import static org.jsola.hr.example.SocDispatchCompanyEmpExample.E_SOC_DISPATCH_EMP_ID;
import static org.jsola.hr.example.SocDispatchCompanyEmpExample.E_SOC_DISPATCH_ID;
import static org.jsola.hr.example.SocDispatchCompanyEmpExample.M_CHILD_COMPANY_ID_MAX;
import static org.jsola.hr.example.SocDispatchCompanyEmpExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.SocDispatchCompanyEmpExample.M_SOC_DISPATCH_COMPANY_ID_MAX;
import static org.jsola.hr.example.SocDispatchCompanyEmpExample.M_SOC_DISPATCH_COMPANY_ID_NOT_NULL;
import static org.jsola.hr.example.SocDispatchCompanyEmpExample.M_SOC_DISPATCH_EMP_ID_MAX;
import static org.jsola.hr.example.SocDispatchCompanyEmpExample.M_SOC_DISPATCH_EMP_ID_NOT_NULL;
import static org.jsola.hr.example.SocDispatchCompanyEmpExample.M_SOC_DISPATCH_ID_MAX;
import static org.jsola.hr.example.SocDispatchCompanyEmpExample.M_SOC_DISPATCH_ID_NOT_NULL;
import static org.jsola.hr.example.SocDispatchCompanyEmpExample.N_ADD_OR_LESS;
import static org.jsola.hr.example.SocDispatchCompanyEmpExample.N_CHILD_COMPANY_ID;
import static org.jsola.hr.example.SocDispatchCompanyEmpExample.N_COMPANY_ID;
import static org.jsola.hr.example.SocDispatchCompanyEmpExample.N_SOC_DISPATCH_COMPANY_ID;
import static org.jsola.hr.example.SocDispatchCompanyEmpExample.N_SOC_DISPATCH_EMP_ID;
import static org.jsola.hr.example.SocDispatchCompanyEmpExample.N_SOC_DISPATCH_ID;

/**
 * 社保派单公司记录_员工表
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【社保派单公司记录_员工表】的参数")
@Data
public class SocDispatchCompanyEmpUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_SOC_DISPATCH_ID, example = E_SOC_DISPATCH_ID, required = true)
    @NotNull(message = M_SOC_DISPATCH_ID_NOT_NULL)
    @Length(max = 32, message = M_SOC_DISPATCH_ID_MAX)
    private String socDispatchId;

    @ApiModelProperty(notes = N_ADD_OR_LESS, example = E_ADD_OR_LESS)
    private Boolean addOrLess;

    @ApiModelProperty(notes = N_SOC_DISPATCH_COMPANY_ID, example = E_SOC_DISPATCH_COMPANY_ID, required = true)
    @NotNull(message = M_SOC_DISPATCH_COMPANY_ID_NOT_NULL)
    @Length(max = 32, message = M_SOC_DISPATCH_COMPANY_ID_MAX)
    private String socDispatchCompanyId;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_SOC_DISPATCH_EMP_ID, example = E_SOC_DISPATCH_EMP_ID, required = true)
    @NotNull(message = M_SOC_DISPATCH_EMP_ID_NOT_NULL)
    @Length(max = 32, message = M_SOC_DISPATCH_EMP_ID_MAX)
    private String socDispatchEmpId;

    @ApiModelProperty(notes = N_CHILD_COMPANY_ID, example = E_CHILD_COMPANY_ID)
    @Length(max = 32, message = M_CHILD_COMPANY_ID_MAX)
    private String childCompanyId;


}

